package com.aerfafish.spider.neo4j.dao;

import lombok.Data;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.NodeEntity;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.Relationship;

import java.util.Set;

@NodeEntity("Fund")
@Data
public class Fund {

    @Id
    Long id;

    // 基金代码
    @Property
    String code;

    // 历史净值
    @Relationship(type = "FUND_VALUE")
    Set<FundValue> historyValues;

    // 持仓信息
    @Relationship(type = "FUND_HOLD_SHARE")
    Set<FundHoldShare> fundHoldShares;

    // 基金类型
    @Property
    String type;

    // 成立日期
    @Relationship(type = "FUND_ESTABLISH_DATE")
    FundEstablishDate establishDate;

    // 资产规模
    @Property
    Long assetSize;

}
